<template>
  <div id="app">
    <router-view/>
    <my-tabbar v-if="flag"></my-tabbar>
  </div>
</template>

<script>
// 引入底部tabbar组件
import myTabbar from "./components/myTabbar/myTabbar";

export default {
  name: 'App',
  computed: {
    flag() {
      return this.$route.meta.isShowTabbar;
    }
  },
  components: {myTabbar}
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100vw;
  height: 100vh;
}
</style>
